package com.frame.pageform;

import java.util.*;

public class ConfigFactory {

	private static Map map=new HashMap();

	public static Object getBean(Class c) throws Exception
	{
		Object bean= map.get(c);
		if(bean==null){
			bean=c.newInstance();
			map.put(c, bean);
		}
		return bean;
	}
}
